/*
 * @Author: Starfish_DL
 * @Date: 2020-09-30 20:45:04
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-09-30 20:45:43
 * @CurrentVersion: 1.0
 * @Description: 
 */

public class Max001 {
    public static int Max(int i, int j) {
        if (i>=j) return i;
        else return j;
    }

    public static double Max(double i, double j) {
        if (i>j) return i;
        else return j;
    }
    
    public static double Max(double i, double j, double k) {
        double m;
        if (i>j) m = i;
        else m = j;
        if (m>k) return m;
        else return k;
    }
    
    public static void main(String[] args) {
    System.out.println(Max(1,2));
    System.out.println(Max(4.222222222222223,4.222222222222222));
    System.out.println(Max(4.222222222222223,4.222222222222229, 4.222222222222232));
    }
}
